package com.aaa.service.impl.mht;

import com.aaa.entity.mht.MhtAnswer;
import com.aaa.mapper.mht.MhtAnswerMapper;
import com.aaa.service.mht.MhtAnswerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MhtAnswerServiceImpl implements MhtAnswerService {
    @Autowired
    private MhtAnswerMapper mhtAnswerMapper;

    /**
     * 添加记录答案(通用mapper批量添加   dao层 继承insertListMapper<实体类>  service直接调用insertList（）)
     * @param details
     * @return
     */
    @Override
    public Boolean addAnswer(List<MhtAnswer> details) {
        int i = mhtAnswerMapper.insertList(details);
        return i>=0;
    }
}
